package top.hg.tool.modules.car.notice;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: skh
 * @Date: 2019/7/16 16:45
 * @Description: 公告通知
 */
@Data
@TableName("tb_notice")
public class NoticeEntity implements Serializable {

    @ApiModelProperty("主键")
    @TableId
    private Integer id;

    @ApiModelProperty("内容")
    @NotNull
    private String content;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态 1:启用 0:禁用 -1:删除")
    private Integer status;

    @ApiModelProperty("排序号, 越大越靠前")
    @NotNull
    private Integer rank;

    @ApiModelProperty("类型")
    @NotNull
    private String type;

    @ApiModelProperty("创建时间")
    private Date createTime;
}
